package com.imooc;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 打包war [4] 增加war的启动类
 *
 * @author: ZhaoYiChen
 * @create: 2020-09-10 09:42
 **/
public class WarStarterApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 指向Applicaton这个 SpringBoot启动类
        return  builder.sources(Application.class);
    }
}
